package generator.template;

public class ExcludesGenerator {

	public static String generate(String path, String type, String element, int excludesCounter) {
		return "\n\t\tprivate function excludes"+type+""+excludesCounter+"(colecao:Vector.<"+type+">):Boolean{\n"+
				"\t\t\tvar contain:Boolean = false;\n"+
				"\t\t\tfor each (var value:"+type+" in colecao){\n"+
				"\t\t\t\tif(value.Equals("+element+"){\n"+
				"\t\t\t\t\tcontain = true;\n"+
				"\t\t\t\t}\n"+
				"\t\t\t}\n"+
				"\t\t\treturn contain;\n"+
				"\t\t}\n";
	}

}
